
class menu():
    def __init__(self,driver):
        self.driver = driver
    #一级菜单
    def groupLife(self):
        return self.driver.find_element_by_xpath("//*[@id='menuClass1']/ul/li[2]/a")
    #询报价管理
    def priceMangement(self):
        return  self.driver.find_elements_by_class_name("goon")[0]
    #新单管理
    def newOrder(self):
        return self.driver.find_elements_by_class_name("goon")[1]
    def inputInsurance(self):
        return self.driver.find_element_by_link_text("投保人信息录入")